package pl.edu.mimuw.mas.editor.listener;

import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.widgets.Shell;

import pl.edu.mimuw.mas.editor.AboutDialog;

/**
 * Implementacja Listenera dla okna dialogowego "About".
 */
public class AboutMenuItemListener implements SelectionListener {
	private final AboutDialog dialog;
	
	public AboutMenuItemListener(Shell shell) {
		dialog = new AboutDialog(shell);
	}

	@Override
	public void widgetDefaultSelected(SelectionEvent arg0) {
	}

	@Override
	public void widgetSelected(SelectionEvent arg0) {
		dialog.open();
	}

}
